package advance_2;
//import java.time.*;
import java.util.*;
public class DateTest {
    public static void main(String[] args) {
        Date d=new Date();//当前时间
        System.out.println(d);
        System.out.println(d.getTime());//1970到现在的毫秒数
        System.out.println("年:"+d.getYear());
        System.out.println("月:"+d.getMonth());
        System.out.println("天:"+d.getDate());
        System.out.println("周几:"+d.getDay());
    }
}
